﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContactUS.aspx.cs" Inherits="com.dz.web.User.ContactUS" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>联系我们</title>
     <LINK rel=STYLESHEET type=text/css href="/style/home.css" />
      <script src="/javascript/must.js" type="text/javascript"></script>
     <script src="/javascript/ajax.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <DIV id=topBar>
<UL>
  <LI id=m_home><A href="/default.aspx">欢迎光临<%=com.dz.common.AppConfig.SiteName%>网</A> </LI>
   <li><label id="lblUserName" runat="server"></label>&nbsp;&nbsp;<a href="/User/MyBookCase.aspx" target="_blank" class="green">我的书架</a>&nbsp;<a href="/User/MyCollect.aspx" target="_blank" class="green">我的推荐</a>&nbsp;&nbsp;<a href="#" onclick="LoginOut()">退出</a></li>
    <li class="r"><a href="javascript:AddToFavorite();">加入收藏</a> </li>
      <li class="r"><a href="javascript:setHomepage();">设为首页</a> </li>
    <li class="r"><a href="/ShortCut.aspx" target="_blank">加入桌面</a> </li>
 </UL>
</DIV>

    <DIV class=g_main>
<DIV class="l mainl">
<DIV class=deals>
<DIV class="top fudong"><IMG src="/images/bg_scodtop.png"> 
<DIV class=bbsmenu>
<UL>

  <LI class=over><A href="/User/MyBookCase.aspx">我的书架</A></LI>
  <LI class=over><A href="/User/MyCollect.aspx">我的推荐</A></LI>
  <LI class=over><A href="/User/MyReview.aspx">我的评论</A></LI>
  <LI class=over><A href="/User/MyInfo.aspx">资料管理</A></LI>
  <LI ><A href="/User/ContactUS.aspx">联系我们</A></LI></UL>
  
  </DIV></DIV>
<DIV class=mid>
<DIV class=gbt_line>
<DIV class=l>联系我们</DIV>
<DIV class=c></DIV></DIV>
<DIV class=sect>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      邮箱：</TD>
    <TD width="75%"><INPUT id="email" class=kuangaa_login maxLength=200 size=28 > </TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
     Q    Q：</TD>
    <TD><INPUT id="qq" class=kuangaa_login size=28 ></TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      电话：</TD>
    <TD><INPUT id="telephone" class=kuangaa_login size=28 ></TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      类型：</TD>
    <TD><select id="ddlContactType"><option value="1">咨询</option><option value="2">章节错误举报</option><option value="3">点读小说</option><option value="4">广告服务</option><option value="5">其他</option></select> </TD></TR>
    <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      说明：</TD>
    <TD>
    <textarea id="content" class=kuangaa_login name="content" cols="150"  rows="10"  ></textarea>
    </TD></TR>




  <TR>
    <TD style="FONT-SIZE: 14px; margin-top:10px;" height=20 align=right ></TD>
    <TD><br /><INPUT class="btn" type=button value="提 交" onclick="SubmitContact()" > 
      </TD></TR></TBODY></TABLE></DIV>

</DIV>
<DIV class=bom><IMG src="/images/bg_scodbom.png"></DIV></DIV></DIV>
<DIV class="r mainr">
<DIV class="phb">
<DIV class=left>
<DIV class=hd>
<H3>热门作品</H3></DIV>

<asp:Label ID="lblVipClick" runat="server"></asp:Label>
</DIV>
                      
</DIV>

</DIV>
<DIV class=c></DIV></DIV>
<DIV id=tcopyright class=tcopyright>
<div>
<p><%=com.dz.common.AppConfig.SiteName%>所收录免费小说作品、书库评论及<%=com.dz.common.AppConfig.SiteName%>所做之广告均属用户个人行为，与<%=com.dz.common.AppConfig.SiteName%>无关</p><p>本站小说完全收录于互联网,共享给网友免费阅读,如有侵害你权力的地方，请与管理员里联系</p>
</div>
<DIV><A href="#/">关于<%=com.dz.common.AppConfig.SiteName%> </A>| <A 
href="#">版权说明</A> | <A 
href="#">服务条款</A>  </DIV>
<DIV class=en>Copyright &copy; 2010 <a href="<%=com.dz.common.AppConfig.SiteUrl%>" target="_blank"><%=com.dz.common.AppConfig.SiteName%> </a> 

 </DIV>
<DIV><%=com.dz.common.AppConfig.SiteName%>  <A href="<%=com.dz.common.AppConfig.SiteUrl%>" 
target=_blank>版权所有</A> </DIV></DIV>
    </div>
    <script>
function LoginOut()
{
    MyAjax.ExcuteScript("loginout","out",ShowLoginOutBack);
}
function ShowLoginOutBack(result)
{
    if(result.value.indexOf("成功")>-1)
    {
       window.location.href='/default.aspx';
    }
}
   var email=$("email");
    var qq=$("qq");
    var telephone=$("telephone");
     var content=$("content");
function SubmitContact()
{
 
    var ddlContactType=$("ddlContactType");
    var contactType=0;
    for(var index=0;index<ddlContactType.options.length;index++)
    {
        if(ddlContactType.options[index].selected==true)
        {
            contactType=ddlContactType.options[index].value;
            break;
        }
    }
   
   
    if(email.value=="")
    {
        alert("请输入邮箱!");
        email.focus();
        return false;
    }
    if(isEmail(email.value)==false)
    {
        alert("邮箱地址格式不正确!");
        email.focus();
        return false;
    }
    
    if(telephone.value=="")
    {
        alert("请输入联系电话!");
        telephone.focus();
        return;
    }
    
    if(qq.value=="")
    {
        alert("请输入QQ!")
        qq.focus();
        return false;
    }
   
    if(content.value=="")
    {
        alert("请输入说明!");
        return false;
    }
    var script=email.value+"$"+qq.value+"$"+telephone.value+"$"+contactType+"$"+content.value;
    MyAjax.ExcuteScript("contactus",script,ShowBack);
    
}
function isEmail(str){ 
res = /^[0-9a-zA-Z_\-\.]+@[0-9a-zA-Z_\-]+(\.[0-9a-zA-Z_\-]+)*$/; 
var re = new RegExp(res); 
return !(str.match(re) == null); 
} 

function ShowBack(result)
{
     alert(result.value);
     if(result.value.indexOf("成功")>-1)
     {
        email.value="";
        qq.value="";
        telephone.value="";
        content.value="";
     }
}
</script>
    </form>
</body>
</html>